Skip to content

Instantly share code, notes, and snippets.

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active July 12, 2026 19:02
set -e, -u, -o, -x pipefail explanation
@rohitg00
rohitg00 / llm-wiki.md
Last active July 12, 2026 19:01 — forked from karpathy/llm-wiki.md
LLM Wiki v2 — extending Karpathy's LLM Wiki pattern with lessons from building agentmemory

LLM Wiki v2

A pattern for building personal knowledge bases using LLMs. Extended with lessons from building agentmemory 20K+ Stars ⭐️, a persistent memory engine for AI coding agents.

This builds on Andrej Karpathy's original LLM Wiki idea file. Everything in the original still applies. This document adds what we learned running the pattern in production: what breaks at scale, what's missing, and what separates a wiki that stays useful from one that rots.

What the original gets right

The core insight is correct: stop re-deriving, start compiling. RAG retrieves and forgets. A wiki accumulates and compounds. The three-layer architecture (raw sources, wiki, schema) works. The operations (ingest, query, lint) cover the basics. If you haven't read the original, start there.

@beeyev
beeyev / relegram-owl-ru.md
Last active July 12, 2026 18:58
Отправка сообщений в Telegram из командной строки с помощью telegram-owl

telegram-owl — CLI-инструмент для отправки сообщений в Telegram из командной строки

telegram-owl — это лёгкий и удобный инструмент командной строки (CLI), написанный на языке Go, который позволяет отправлять текстовые сообщения, файлы и мультимедиа в Telegram-каналы, чаты и группы прямо из терминала.

Этот инструмент будет полезен:

  • разработчикам
  • DevOps-инженерам
  • системным администраторам
  • авторам скриптов автоматизации
  • всем, кто хочет получать уведомления в Telegram из своих программ или серверов
@conradcaffier03
conradcaffier03 / give-claude-eyes.md
Created July 9, 2026 19:59
Give Claude Eyes — watch any video frame-by-frame, 100% local (buildwith.conrad)

👁️ Give Claude Eyes — watch any video frame-by-frame

Freebie for the EYES keyword (reel-47, "Give Claude eyes"). Deliver as a public GitHub Gist — numbered steps the user can run today, not a raw link. Value-first: by the end you have a Claude Code skill that sees a video (every cut, every on-screen detail), not just reads its transcript.


Why this exists

Claude has no native video model. So every "analyze this video" tool just pulls the transcript — and

@Chlorek
Chlorek / opencode-codex-identity-plugin.ts
Last active July 12, 2026 18:49
Fix GPT-5.6 Luna in OpenCode - Plugin
import type { Plugin } from "@opencode-ai/plugin"
export default (async () => ({
"chat.headers": async (input, output) => {
if (input.model.providerID !== "openai") return
output.headers.originator = "codex_cli_rs"
output.headers["User-Agent"] = "codex_cli_rs/0.0.0 (OpenCode)"
},
})) satisfies Plugin
@jctosta
jctosta / limit_gpu_power.md
Created July 12, 2024 21:04
Nvidia GPU Power Limits for Linux System

You can use the following commands to limit the maximum power allowed to your NVIDIA GPU when using linux systems.

First, let's check how much power the GPU is allowed to draw and the current value:

nvidia-smi -q -d POWER

This should return an output similar to this one:

@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active July 12, 2026 18:47
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@logrusorgru
logrusorgru / Makefile
Last active July 12, 2026 18:43
GNU Assembler: пишем разделяемые библиотеки
all: clean build run
build:
gcc -nostdlib -Wall -shared -fPIC hello_exit.S -Wl,-soname,libhelloexit.so.1 -o libhelloexit.so.1.0
ln -sv libhelloexit.so.1.0 libhelloexit.so.1
ln -sv libhelloexit.so.1.0 libhelloexit.so
gcc -nostdlib -Wall -L. -I. hello.c -lhelloexit -Wl,-rpath,. -o hello
@echo Done
run:
name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections: